package javabase.schoolwork.day6_6;

/**
 * @author fance
 * @date 18-6-6 下午1:30
 */
public class PointI {
    private Object x;
    private Object y;

    public PointI(Object x, Object y) {
        this.x = x;
        this.y = y;
    }

    public Object getX() {
        return x;
    }

    public void setX(Object x) {
        this.x = x;
    }

    public Object getY() {
        return y;
    }

    public void setY(Object y) {
        this.y = y;
    }

    public static void main(String[] args) {
        PointI pointI = new PointI(10,"北纬210度");
        int x = (int) pointI.getX();
        int y = (int) pointI.getY();
        System.out.println(x);
        System.out.println(y);
    }
}
